package com.yaser.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yaser.dao.UserDao;
import com.yaser.model.User;
import com.yaser.service.UserService;
import com.yaser.util.CustomHibernateDaoSupport;

@Service("userService")
public class UserServiceImpl extends CustomHibernateDaoSupport implements UserService{

	@Autowired
	private UserDao<User> userDao;
	
	@Override
	public User saveUser(User user) {
		return userDao.save(user);
	}

}
